package com.yanqu.road.server.logic.task;

import com.yanqu.road.utils.property.Property;
import com.yanqu.road.utils.property.PropertyHelper;

public class TaskConditionMail {
    private String mailKey;
    private String mailTitle;
    private String mailContent;
    Property reward;

    public TaskConditionMail(String mailKey, String mailTitle, String mailContent) {
        this.mailKey = mailKey;
        this.mailTitle = mailTitle;
        this.mailContent = mailContent;
        reward = new Property();
    }

    public String getMailTitle() {
        return mailTitle;
    }

    public void setMailTitle(String mailTitle) {
        this.mailTitle = mailTitle;
    }

    public String getMailContent() {
        return mailContent;
    }

    public void setMailContent(String mailContent) {
        this.mailContent = mailContent;
    }

    public Property getReward() {
        return reward;
    }

    public void setReward(Property reward) {
        this.reward = reward;
    }

    public void addProperty(Property property) {
        reward.addProperty(property);
    }

    public String getRewardStr() {
        return PropertyHelper.parsePropertyToString(reward);
    }
}
